import Shop from "../pages/shop/Shop";
import ShopGoods from "../pages/shop/ShopGoods/ShopGoods";
import ShopInfo from "../pages/shop/ShopInfo/ShopInfo";
import ShopRatings from "../pages/shop/ShopRatings/ShopRatings";
import child from "../text/child";
import father from "../text/father";
const Msite = ()=>import("@/pages/Msite/Msite")
// const Order = ()=>import('@/pages/Order/Order')
const Profile = ()=>import('@/pages/Profile/Profile')
const Search = ()=>import('@/pages/Search/Search')
const Login = ()=>import('@/pages/Login/Login')
export default [
    {path: '/test',component:child},
    {path: '/test111',component: father},
    {path: '/msite', component: Msite, meta: {footGuide: true}},
    {path: '/order', component: ()=>import('@/pages/Order/Order'), meta: {footGuide: true}},
    {path: '/profile', component: Profile, meta: {footGuide: true}},
    {path: '/login', name: 'login', component: Login},
    {path: '/search', component: Search, meta: {footGuide: true}},
    {path: '/', redirect: '/msite'},
    {
        path: '/shop/:id',
        props:(route)=>({id:route.params.id}),
        component: Shop,
        children: [
            {path: 'goods', component: ShopGoods,meta:{goods:true}},
            {path: 'info', component: ShopInfo},
            {path: 'ratings', component: ShopRatings},
            {path: '',redirect:'goods'}
        ],

    }
]